import request from "@/utils/request";
import RequestMethod from "@/constant/RequestMethod";

export function getAllBusiness(condition) {
    return request({
        url: '/api/businesses',
        method: RequestMethod.GET,
        params: condition
    })
}


export function getBusinessInfo() {
    return request({
        url: '/api/businesses/info',
        method: RequestMethod.GET,
    })
}

export function getRandomBusiness() {
    return request({
        url: '/api/businesses/radom',
        method: RequestMethod.GET
    })
}

export function getAllBusinessGoods(id) {
    return request({
        url: '/api/businesses/all/message/' + id,
        method: RequestMethod.GET
    })
}